package org.example.service;


import org.example.entity.Response;
import org.example.entity.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "myserviceProvider") //需要访问的远程微服务应用名称
public interface UserService {



    @PostMapping(value = {"/user/login"})
    public Response login(@RequestBody Users users) throws  Exception;

    @PostMapping(value = {"/user/focus"})
    public Response focus(@RequestParam Integer befocusId,@RequestParam Integer focusId) throws  Exception;

    @PostMapping(value = {"/user/cancelfocus"})
    public Response canclefocus(@RequestParam Integer befocusId,@RequestParam Integer focusId) throws  Exception;

    @PostMapping(value = {"/user/updateUserInfo"})
    public Response updateUserInfo(@RequestBody Users user) throws  Exception;

    @PostMapping(value = {"/user/getUserInfo"})
    public Response getUserInfo(@RequestParam Integer uid) throws  Exception;
}
